<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="static_res.jsp"%>
    <style>
        .selfred {
            background-color: rgba(238,110,115,1); !important;
        }
        .selfred1 {
            background-color: rgba(238,110,115,0.5); !important;
        }
    </style>
    <script>
        function alreadyRead() {
            $.ajax({
                type : "POST",
                url : "<%=path%>/user/closeMessage",
                dateType : "text",
                success : function(result) {
                }
            });
        };
        $(function () {
            $("#m3").addClass("active");
        });
    </script>
</head>
<body onload="alreadyRead()">
<%@ include file="header.jsp"%>
<div class="container">
    <%--3,9布局--%>
    <div class="row">
        <%@ include file="userMenu.jsp"%>

        <%--9 start--%>
        <div class="col s9">

            <div class="row"></div>
            <c:forEach items="${MessageList}" var="msg">
                <c:if test="${msg.flag == 1}">
                    <div class="row">
                        <div class="col s8 offset-s2">
                            <div class="card-panel selfred">
                                <span class="white-text">
                                    ${msg.oname}${msg.optName}了你
                                    <c:if test="${msg.source!= null}">
                                        在${msg.source}
                                    </c:if>
                                </span>
                            </div>
                        </div>
                    </div>
                    </c:if>
            </c:forEach>
<c:forEach items="${MessageList}" var="msg">
    <c:if test="${msg.flag == 1}">
                    <div class="row">
                        <div class="col s8 offset-s2">
                            <div class="card-panel selfred1">
                                <span class="black-text">
                                    ${msg.oname}${msg.optName}了你
                                    <c:if test="${msg.source!= null}">
                                        ${msg.str}${msg.source}
                                    </c:if>
                                </span>
                            </div>
                        </div>
                    </div>
    </c:if>
</c:forEach>





        </div> <%--9 end--%>
    </div><%--3,9 row end--%>
</div>
</body>
</html>
